﻿namespace FFF.Test.Application.Repositories.FW
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using Abp.Application.Services.Dto;
    using Abp.AutoMapper;

    /// <summary>
    /// 2.001 注册用户(于大明)输入dto
    /// </summary>
    public class RegisterUserInDto
    {
        /// <summary>
        /// 电话号码
        /// </summary>
        [Required]
        [RegularExpression(@"^1([38]\d|5[0-35-9]|7[3678])\d{8}$", ErrorMessage = "手机号错误")]
        public string Cellphone { get; set; }

        /// <summary>
        /// 验证码
        /// </summary>
        [Required]
        public string Vercode { get; set; }

        /// <summary>
        /// 密码
        /// </summary>
        [StringLength(50, MinimumLength = 6)]
        public string Password { get; set; }

        /// <summary>
        /// 重复密码
        /// </summary>
        public string Repass { get; set; }

        /// <summary>
        /// 昵称
        /// </summary>
        [Required]
        public string Nickname { get; set; }
    }

    /// <summary>
    /// 2.001 注册用户(于大明)输出dto
    /// </summary>
    public class RegisterUserOutDto
    {
    }
}
